package com.pengtu.entity.human;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.pengtu.entity.IdEntity;

/**
 * Overtime.
 * 加班记录
 */
@Entity
@Table(name="T_HUMN_OVERTIME"
    ,schema="DGJD"
)
public class Overtime  extends IdEntity {

     /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String deptid;
     private String userid;
     private Date startdate;
     private Date enddate;
     private String content;
     private String type;
     private String clear;
     private String recorder;
     private Date recorddate;
     private String remark;


    public Overtime() {
    }

    
    @Column(name="DEPTID", length=48)
    public String getDeptid() {
        return this.deptid;
    }
    
    public void setDeptid(String deptid) {
        this.deptid = deptid;
    }
    
    @Column(name="USERID", length=48)
    public String getUserid() {
        return this.userid;
    }
    
    public void setUserid(String userid) {
        this.userid = userid;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="STARTDATE", length=7)
    public Date getStartdate() {
        return this.startdate;
    }
    
    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="ENDDATE", length=7)
    public Date getEnddate() {
        return this.enddate;
    }
    
    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }
    
    @Column(name="CONTENT", length=1000)
    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    @Column(name="TYPE", length=3)
    public String getType() {
        return this.type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    @Column(name="CLEAR", length=3)
    public String getClear() {
        return this.clear;
    }
    
    public void setClear(String clear) {
        this.clear = clear;
    }
    
    @Column(name="RECORDER", length=200)
    public String getRecorder() {
        return this.recorder;
    }
    
    public void setRecorder(String recorder) {
        this.recorder = recorder;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="RECORDDATE", length=7)
    public Date getRecorddate() {
        return this.recorddate;
    }
    
    public void setRecorddate(Date recorddate) {
        this.recorddate = recorddate;
    }
    
    @Column(name="REMARK", length=400)
    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


